package com.example.counter;
import java.util.concurrent.atomic.AtomicLong;


public class AtomicCounter implements Counter {
	private AtomicLong counter = new AtomicLong(0);

	public void reset() {
		counter.set(0);
	}

	public void increment() {
		counter.getAndIncrement();
	}

	public long getCounter() {
		return counter.get();
	}
}
